package com.zusmart.base.network;

import java.nio.channels.SocketChannel;
import java.util.Map;

import com.zusmart.base.activity.Activity;

public interface ChannelContextManager extends Activity<ChannelContextManager> {
	
	public boolean isServerSide();

	public boolean isClientSide();
	
	public ChannelContext createChannelContext(SocketChannel socketChannel);
	
	public ChannelContext getChannelContext(String contextCode);
	
	public Map<String,ChannelContext> getChannelContexts();
	
	public int getChannelContextSize();
	
}